package code.hkgolden.android.core;

import android.os.Bundle;
import code.framework.android.activity.ActivityBase;

import com.google.inject.Inject;
import com.google.inject.Injector;

public abstract class HkgoldenActivityBase extends ActivityBase {

	protected HkgoldenApplication hkgoldenApplication;

	@Inject
	protected HkgoldenContext hkgoldenContext;

	@Inject
	protected HkgoldenViewManager hkgoldenViewManager;

	@Override
	public Injector getInjector() {
		return hkgoldenApplication.guiceInjector;
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// logger.debug("onCreate()");

		hkgoldenApplication = (HkgoldenApplication) super.getApplication();

		super.onCreate(savedInstanceState);

		// HkmoviesContext.notifyLanguageChanged(this);
		// if (this.hkmoviesApplication.langId !=
		// HkmoviesContext.getLangId(this)) {
		// this.hkmoviesApplication.langId = HkmoviesContext.getLangId(this);
		// load();
		// }
	}

	@Override
	protected void onResume() {
		// logger.debug("onResume()");
		super.onResume();
		// HkmoviesContext.notifyLanguageChanged(this);
		// if (this.hkmoviesApplication.langId !=
		// HkmoviesContext.getLangId(this)) {
		// this.hkmoviesApplication.langId = HkmoviesContext.getLangId(this);
		// load();
		// }
	}

	@Override
	protected void onDestroy() {
		// logger.debug("onDestroy()");
		super.onDestroy();
		// HkmoviesContext.getInstance().popActivity();
	}

	/**
	 * 
	 */
	protected void load() {
		logger.debug("load()");
	}

	/**
	 * 
	 */
	protected void render() {
		logger.debug("render()");
	}

}
